﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu.Master" AutoEventWireup="true" CodeBehind="fMstWrh.aspx.cs" Inherits="MixScriptWeb.Warehouse.fMstWrh" EnableEventValidation="false"%>
<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            Master Warehouse</h2>
        <br />
        <table style="width: 100%;" class="table-ui">
            <tr>
                <td style="width: 173px;">
                    <label id="lbuser" for="txtUserID" class="tebel">
                        WRH ID</label>
                </td>
                <td style="width: 5px;">
                    :
                </td>
                <td style="width: 1273px;">
                    <mix:baseTextBox ID="txtwrhid" runat="server" AllowNull=True showFind=True tooltip="This Field Cannot be empty"
                        isvalid="True" ReadOnly="True" tWidht="200" />
                </td>
            </tr>
            <tr>
                <td style="width: 173px;">
                    WRH Short Code</td>
                <td style="width: 5px;">
                    :</td>
                <td style="width: 1273px;">
                    <mix:baseTextBox ID="txtwrhcode" runat="server" AllowNull=True showFind=False
                        tooltip="This Field Cannot be empty" isvalid="True" InquiryMethod="Like" UseQuote="True"
                        tWidht="300" />
                </td>
            </tr>
            <tr>
                <td style="width: 173px;">
                    WRH Name</td>
                <td style="width: 5px;">
                    :
                </td>
                <td style="width: 1273px;">
                    <mix:baseTextBox ID="txtWrhName" runat="server" AllowNull=True showFind=False
                        tooltip="This Field Cannot be empty" isvalid="True" InquiryMethod="Like" UseQuote="True"
                        tWidht="300" />
                </td>
            </tr>
            <tr>
                <td style="width: 173px; height: 28px;">
                    WRH Desc
                </td>
                <td style="width: 5px; height: 28px;">
                    :
                </td>
                <td style="width: 1273px;">
                    <mix:baseTextBox ID="txtWrhDesc" runat="server" AllowNull=false showFind=False
                        tooltip="" isvalid="True" isPassword="False" tWidht="220" />
                </td>
            </tr>
            </table>
        <br />
        <table style="width: 600px" class="table-ui">
            <tr>
                <td style="height: 26px;">
                    &nbsp;
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" Width="99px"
                        OnClick="btnSave_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="button" Width="109px"
                        OnClientClick="verify()" OnClick="btnDelete_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnFind" runat="server" Text="Find" CssClass="button" Width="101px"
                        OnClick="btnFind_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnClear" runat="server" Text="Clear" CssClass="button" Width="101px"
                        OnClick="btnClear_Click" />
                </td>
                <td style="height: 26px; width: 4px;">
                    &nbsp;
                </td>
                <td style="height: 26px">
                    &nbsp;
                </td>
            </tr>
        </table>
        <%-- </ContentTemplate>
           </asp:UpdatePanel>--%>
            <asp:GridView ID="gvdetail" runat="server" Width="100%" AllowPaging="True" CssClass="gridview"
                AllowSorting="True" OnPageIndexChanging="gvdetail_PageIndexChanging" OnSorting="gvdetail_Sorting"
                OnRowDataBound="gvdetail_RowDataBound" OnSelectedIndexChanged="gvdetail_SelectedIndexChanged"
                AutoGenerateColumns="False">
                <AlternatingRowStyle CssClass="alt" />
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID=cbAll runat="server" OnCheckedChanged="cbAll_CheckedChanged" AutoPostBack="True" />
                        </HeaderTemplate>
                        <EditItemTemplate>
                            <asp:CheckBox ID="cbitem" runat="server" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbitem" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8px" />
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                <FooterStyle CssClass="ft" />
                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
            </asp:GridView>
            <asp:LinkButton ID="lbDelete" runat="server" OnClick="lbDelete_Click" OnClientClick="return confirm('Are You Sure Want to Delete Selected Item?')"
                Visible="False">Delete Selection</asp:LinkButton>
            <br />
            <asp:Label ID="lblRowCount" runat="server" Font-Bold="True" Font-Size="X-Small"></asp:Label>
            <br />
        <%-- </ContentTemplate>
           </asp:UpdatePanel>--%>
        <br />
        <br />
        <div id="pnldetail">
        </div>
        <br />
        <br />
        <%-- </ContentTemplate>
           </asp:UpdatePanel>--%>
        <script type="text/javascript">

            //ContentPlaceHolder1_txtBankCode_txt
            document.getElementById("ContentPlaceHolder1_txtCode_txt").removeAttribute("readonly");
            //document.getElementById("ctl00$ContentPlaceHolder1$txtBankCode$txt").removeAttribute("readonly");

        </script>
    </div>
</asp:Content>
